package com.lms.common.web.service.impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lms.common.pure.entity.IBaseEntity;
import com.lms.common.web.utils.CheckEntityResult;

import java.io.Serializable;

public abstract class WrapperServiceImpl<M extends BaseMapper<T>, T  extends IBaseEntity> extends BaseServiceImpl<M, T>{
    @Override
    public CheckEntityResult beforeUpdate(T entity, Serializable id) {
        return CheckEntityResult.getInstance();
    }

    @Override
    public CheckEntityResult beforeInsert(T entity) {
        return CheckEntityResult.getInstance();
    }

    @Override
    public void afterUpdate(T entity) {

    }

    @Override
    public void afterInsert(T entity) {

    }

    @Override
    public boolean beforeDelete(Serializable id) {
        return true;
    }

    @Override
    public void afterDelete(Serializable id) {

    }

    @Override
    public Object extensionOne(T sysUser) {
        return null;
    }

}
